##!/bin/bash
#set -eo pipefail
#cd  /opt/export/
#
#runday="{{ execution_date | cst_ds }}"
#
#hdfs dfs -get -f /export/路由区县数据导出_$runday    /opt/export/路由区县数据导出_$runday
#
#zip  /opt/export/路由区县数据导出_$runday.zip   /opt/export/路由区县数据导出_$runday/*
#
#/usr/local/python3/bin/python3  /usr/local/airflow/dags/utils/operators/upload_oss.py 路由区县数据/路由区县数据导出_$runday.zip   /opt/export/路由区县数据导出_$runday.zip
#
#data_size=$(ls -lh 路由区县数据导出_$runday.zip | awk '{print $5}')
#Message="路由区县数据导出_$runday 报表上传成功 大小: $data_size"
#
#curl 'https://oapi.dingtalk.com/robot/send?access_token=816a8f35fd84432ffa6bff9d7714abc322628bb4a8ded86908550d2335aba613' \
#   -H 'Content-Type: application/json' \
#   -d "
#  {\"msgtype\": \"text\",
#    \"text\": {
#        \"content\": \"监控内容:$Message\"
#     }
#  }" || true
#
#
#rm -rf  /opt/export/路由区县数据导出_$runday
#rm -rf  /opt/export/路由区县数据导出_$runday.zip